package com.tiancheng.trade.order.vo.admin;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.apache.commons.lang3.StringUtils;

/**
 * @Auther: ld
 * @Date: 2024/3/5 10:38
 * @Param ${tags}
 * @Description:
 */
@Getter
@Setter
@ToString
public class QueryOrdersVO {
    private Long id;

    private String flowId;
    private String orderId;
    // 源订单号（续单、尾款单）
    private String originalOrderId;

    // 业务渠道来源
    private String orderSource;
    // 订单类型
    private String orderType;
    //订单状态
    private String orderStatus;

    //支付订单号
    private String paymentId;

    private String payStatus;

    private String createTimeBegin;
    private String createTimeEnd;

    private String payTimeBegin;
    private String payTimeEnd;

    private Integer currentPage;

    private Integer pageSize;

    private Integer version;

    public String getFlowId() {
        if (StringUtils.isNotEmpty(flowId)) {
            flowId = flowId.trim();
        }
        return flowId;
    }

    public String getOrderId() {
        if (StringUtils.isNotEmpty(orderId)) {
            orderId = orderId.trim();
        }
        return orderId;
    }

    public String getOriginalOrderId() {
        if (StringUtils.isNotEmpty(originalOrderId)) {
            originalOrderId = originalOrderId.trim();
        }
        return originalOrderId;
    }

    public String getPaymentId() {
        if (StringUtils.isNotEmpty(paymentId)) {
            paymentId = paymentId.trim();
        }
        return paymentId;
    }

}
